<?php
require(dirname(__FILE__)."/includes/init.php");
$id = $_REQUEST['id'];
if(isset($_SESSION['user_name'])){
$sql = "select * from template where id='".$id."'";
$row = $GLOBALS['db']->dbGetRow($sql);
?>

<table width="600" border="0" style="background:#FFFFFF">
  <tbody><tr>
    <td>Wish you a Happy New Year!</td>
    <td></td>
  </tr> 
  <tr>
    <td>ID</td>
    <td><?php echo $row['id'];?></td>
  </tr>
  <tr>
    <td>title</td>
    <td><?php echo $row['title'];?></td>
  </tr>
  <tr>
    <td>type</td>
    <td><?php echo $row['type'];?></td>
  </tr>
  <tr>
    <td>content</td>
    <td><?php echo $row['content'];?></td>
  </tr>     
</tbody></table>
<?php }
else{
	exit;
}
?>
